package org.springframework.aop;

/**
 * @Name TargetSource
 * @Description: 目标类
 * @Version v1.0.0
 * @Author: lichao
 * @Date: 2024-03-27 15:17:04
 **/
public class TargetSource {

    private final Object target;

    public TargetSource(Object target) {
        this.target = target;
    }

    public Class<?>[] getTargetClass() {
        return target.getClass().getInterfaces();
    }

    public Object getTarget() {
        return target;
    }

}

